package com.ruoyi.project.channel.businessPauseOrderSetting.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.channel.businessPauseOrderSetting.mapper.BusinessPauseOrderSettingMapper;
import com.ruoyi.project.channel.businessPauseOrderSetting.domain.BusinessPauseOrderSetting;
import com.ruoyi.project.channel.businessPauseOrderSetting.service.IBusinessPauseOrderSettingService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 卡单状态配置 服务层实现
 * 
 * @author CAIN
 * @date 2024-10-19
 */
@Service
public class BusinessPauseOrderSettingServiceImpl implements IBusinessPauseOrderSettingService 
{
	@Autowired
	private BusinessPauseOrderSettingMapper businessPauseOrderSettingMapper;

	/**
     * 查询卡单状态配置信息
     * 
     * @param settingId 卡单状态配置ID
     * @return 卡单状态配置信息
     */
    @Override
	public BusinessPauseOrderSetting selectBusinessPauseOrderSettingById(Long settingId)
	{
	    return businessPauseOrderSettingMapper.selectBusinessPauseOrderSettingById(settingId);
	}
	
	/**
     * 查询卡单状态配置列表
     * 
     * @param businessPauseOrderSetting 卡单状态配置信息
     * @return 卡单状态配置集合
     */
	@Override
	public List<BusinessPauseOrderSetting> selectBusinessPauseOrderSettingList(BusinessPauseOrderSetting businessPauseOrderSetting)
	{
	    return businessPauseOrderSettingMapper.selectBusinessPauseOrderSettingList(businessPauseOrderSetting);
	}
	
    /**
     * 新增卡单状态配置
     * 
     * @param businessPauseOrderSetting 卡单状态配置信息
     * @return 结果
     */
	@Override
	public int insertBusinessPauseOrderSetting(BusinessPauseOrderSetting businessPauseOrderSetting)
	{
	    return businessPauseOrderSettingMapper.insertBusinessPauseOrderSetting(businessPauseOrderSetting);
	}
	
	/**
     * 修改卡单状态配置
     * 
     * @param businessPauseOrderSetting 卡单状态配置信息
     * @return 结果
     */
	@Override
	public int updateBusinessPauseOrderSetting(BusinessPauseOrderSetting businessPauseOrderSetting)
	{
	    return businessPauseOrderSettingMapper.updateBusinessPauseOrderSetting(businessPauseOrderSetting);
	}

	/**
     * 删除卡单状态配置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteBusinessPauseOrderSettingByIds(String ids)
	{
		return businessPauseOrderSettingMapper.deleteBusinessPauseOrderSettingByIds(Convert.toStrArray(ids));
	}
	
}
